Auto merge of #1568 - sondrele:rustc-subcommand, r=alexcrichton
authorbors <bors@rust-lang.org>
Thu, 7 May 2015 19:18:10 +0000 (19:18 +0000)
committerbors <bors@rust-lang.org>
Thu, 7 May 2015 19:18:10 +0000 (19:18 +0000)
## Work in progress
I have followed issue #595 for a while now. I hope that this PR can solve it, after it's done of course.

@alexcrichton: on IRC the other day, you suggested adding a `Vec<String>` to the `CompileOptions`. I have done this, but wasn't sure what the best way to identify the correct `Target` would be, so currently everything gets compiled with the additional arguments.
I considered adding a `Target` structure to the `CompileOptions` as well, and then in `cargo_rustc::build_base_args` only append the arguments if the `Target` matches. What do you think about this? Is there an easier way of figuring out the correct `Target`?

r? @alexcrichton

1  2 
src/bin/cargo.rs
src/cargo/ops/cargo_rustc/mod.rs

Simple merge
Simple merge